package com.sunshine.spring.aop.advice.after;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: WeiHong
 * @Date: 2017/3/23 15:38
 */
public class App {

    public static void main(String[] args) {
        ApplicationContext appContex = new ClassPathXmlApplicationContext("advice/after.xml");
        Customer customer = (Customer) appContex.getBean("proxyFactoryBean");
        customer.printName();
        customer.printAdd();
        customer.throwExcetpiion();
    }
}
